package com.sky.service;

import com.sky.dto.CategoryDTO;
import com.sky.entity.Category;
import com.sky.result.PageResult;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: CategoryService
 * Package: com.sky.service
 * Description:菜品分类的服务层接口
 *
 * @Author: Zhang Peiyuan
 * @Create: 2024-12-18-10:57
 * @Version: v1.0
 */

public interface CategoryService {
    void addCategory(CategoryDTO categoryDTO);

    PageResult queryCategoryPage(Integer type, String name, Integer page, Integer size);

    void updateCategoryStatus(Integer status, Long id);

    void updateCategory(CategoryDTO categoryDTO);

    List<Category> listCategory(Integer type);

    void deleteCategory(Long id);
}
